package iss.team2.lams.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MangerController 
{
	//Manager Navigation Pages
	
	@RequestMapping(value = "/manager/detailApproveRejectLeave", method = RequestMethod.GET)
	public ModelAndView managerViewEmplLeave()
	{
		return new ModelAndView("m_detailApproveRejectLeave");
	}
	
	
	
	
	@RequestMapping(value = "/manager/viewAllEmpHistory", method = RequestMethod.GET)
	public ModelAndView managerViewEmp()
	{
		return new ModelAndView("m_viewAllEmpHistory");
		
	}
	
	//Manager Logic Pages
	//manager new pages
	@RequestMapping(value = "/manager/ApproveRejectLeave", method = RequestMethod.GET)
	public ModelAndView ApproveRejectLeave()
	{
		return new ModelAndView("m_ApproveRejectLeave");
	}
	@RequestMapping(value = "/manager", method = RequestMethod.GET)
	public ModelAndView managerView()
	{
		return new ModelAndView("m_ApproveRejectLeave");
	}
	@RequestMapping(value = "/manager/Report", method = RequestMethod.GET)
	public ModelAndView Report()
	{
		return new ModelAndView("m_reports");
	}

}
